# set(component_srcs "ssd1306.cpp")

# # get IDF version for comparison
# set(idf_version "${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}")

# if(idf_version VERSION_GREATER_EQUAL "5.2")
# 	if(CONFIG_LEGACY_DRIVER)
# 		list(APPEND component_srcs "ssd1306_i2c_legacy.c")
# 	else()
# 		list(APPEND component_srcs "ssd1306_i2c_new.c")
# 	endif()
# else()
# 	list(APPEND component_srcs "ssd1306_i2c_legacy.c")
# endif()

# idf_component_register(SRCS "ssd1306_spi.c" "${component_srcs}" PRIV_REQUIRES spi_interface driver INCLUDE_DIRS ".")
